const Router = require('koa-router')
const router = new Router()
const koaBody = require('koa-bodyparser');

const publish=require('../model/publish');
router.post('/getpublish', koaBody(), async (ctx, next) => {
    const username = ctx.request.body.username;
    const userpublish = await publish.GETPUBLISH(username);
    ctx.body = userpublish;

})


module.exports = router;